import i18n from '@/language/index'

export const t = i18n.global.t

export default function QAModel(id = null, classificationId= null, title= null, content = '') {
    this.id = id;
    this.classificationId = classificationId;
    this.title = title;
    this.content = content;

    this.rules = {
        classificationId: [
            {required: true, message: t('menu.1'), trigger: 'blur'},
        ],
        title: [
            {required: true, message: t('menu.1'), trigger: 'blur'},
        ],
    }
}